﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

using transportsystem.DAO;
using transportsystem.DTO;
namespace transportsystem.BUS
{
    public class KhoHangBUS
    {
        public static DataTable getKhoHangByMaHang(int maHang)
        {
            return KhoHangDAO.getKhoHangByMaHang(maHang);
        }

        public static int getMaKhoHangByMaHang(int maHang)
        {
            return KhoHangDAO.getMaKhoHangByMaHang(maHang);
        }

        public static DataTable getAllKhoHang()
        {
            return KhoHangDAO.getAllKhoHang();
        }

        public static DataTable layDanhSachKhoHang()
        {
            return KhoHangDAO.layDanhKhoHang();
        }

        public static bool capNhatKhoHang(KhoHang khohang)
        {
            return KhoHangDAO.capNhatKhoHang(khohang);
        }
        public static bool xoaKhoHang(KhoHang kh)
        {
            return KhoHangDAO.xoaKhoHang(kh);
        }
        public static DataTable timKiemKhoHangTheoTen(string ten)
        {
            return KhoHangDAO.timKiemKhoHangTheoTen(ten);
        }    
    }
}
